//
//  WeiboCommon.swift
//  DXWeibo
//
//  Created by dx on 2017/1/8.
//  Copyright © 2017年 dx. All rights reserved.
//

import Foundation

/*
 client_id= 3074459377
 App Secret= 20e4985847f8837fc95fbf5d16769c69
 redirect_uri=http://baidu.com
 */

// MARK: - 应用程序信息
/// 应用程序 ID
let WBAppKey = "3074459377"
/// 应用程序加密信息（开发者可以申请修改）
let WBAppSecret = "20e4985847f8837fc95fbf5d16769c69"
/// 回调地址 - 登录完成跳转的URl，参数以get形式拼接
let WBRedirectURL = "http://baidu.com"

// MARK: - 照片浏览通知定义
/// 微博 cell 浏览照片通知
let WBStatusCellBrowserPhotoNotification = "WBStatusCellBrowserPhotoNotification"
/// 选中照片索引
let WBStatusCellBrowserPhotoSelectedIndexKey = "WBStatusCellBrowserPhotoSelectedIndexKey"
/// 浏览照片 URL 字符串数组
let WBStatusCellBrowserPhotoURLsKey = "WBStatusCellBrowserPhotoURLsKey"
/// 父视图的图像视图数组，用户展现和解除转场动画参照
let WBStatusCellBrowserPhotoImageViewsKey = "WBStatusCellBrowserPhotoImageViewsKey"

/// MARK: - 全局通知定义
/// 用户需要登录通知
let WBUserShouldLoginNotification = "WBUserShouldLoginNotification"

let WBUserLoginSucceedNotificaton = "WBUserLoginSucceedNotificaton"

// MARK: - 微博配图视图常量
// 外侧间距
let WBStatusPictureViewOutterMargin = CGFloat(12)
// 内侧间距
let WBStatusPictureViewInnerMargin = CGFloat(3)
// 图像视图宽度
let WBStatusPictureViewWidth = UIScreen.cz_screenWidth() - 2 * WBStatusPictureViewOutterMargin
// 图像 item 宽度
let WBStatusPictureItemWidth = (WBStatusPictureViewWidth - 2 * WBStatusPictureViewInnerMargin) / 3






